package core.ui.demo;

import javafx.geometry.Insets;
import javafx.scene.layout.GridPane;
/**
 * @author 李瑜
 * @since JavaFX 8.0
 */
public class DemoGridPane
{
	public static GridPane getGridPane()
	{
		GridPane grid = new GridPane();
		grid.setHgap(8);
		grid.setVgap(2);
		grid.setPadding(new Insets(10));
		
		grid.add(DemoAccordion.getAccordion(),0,0);
		grid.add(DemoCheckBox.getCheckBox(),1,0);
		grid.add(DemoRadioButton.getRadioButton(),2,0);
		grid.add(DemoToggleButton.getToggleButton(),3,0);
		grid.add(DemoMenuButton.getMenuButton(), 4, 0);
		grid.add(DemoSlider.getSliderV(), 5, 0);
		grid.add(DemoSlider.getTickV(), 6, 0);
		grid.add(DemoScrollBar.getScrollBar(),7,0);
		
		grid.add(DemoChoiceBox.getChoiceBox(),0,1);
		grid.add(DemoComboBox.getComboBox(),1,1);
		grid.add(DemoColorPicker.getColorPicker(),2,1);
		grid.add(DemoSlider.getSlider(),3,1);
		grid.add(DemoSlider.getTick(),4,1);
		grid.add(DemoProgressIndicator.getProgressIndicator(),5,1);
		grid.add(DemoProgressIndicator.getProgressIndeterminate(),6,1);
		grid.add(DemoScrollPane.getScrollPane(),7,1);
		
		return grid;
	}
}
